﻿Imports BusinessRule.DTO

Public Interface uLMSContainercurrentinfoIBusiness
    ''' <summary>
    ''' 在更新工序工区和班组后，更新在制批次的工区班组信息，包括班组派工信息，总表当前工区和班组字段
    ''' add:Wangjh 20230424
    ''' </summary>
    ''' <param name="workflowId"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateProcessingContainerByWorkflow(ByVal workflowId As String, Optional ByVal stepIds As String = "") As Boolean
    ''' <summary>
    ''' 更新总表批次的stepWorkcenters或stepTeams字段
    ''' </summary>
    ''' <param name="workflowID"></param>
    ''' <param name="strValues"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateWorkcentersOrTeamsByWorkflowID(ByVal workflowID As String, ByVal strValues As String, ByVal type As String) As Boolean
    ''' <summary>
    ''' 更新总结转表检验信息
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <param name="workflowstepID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateContainerCurrentinfoCheckInfo(ByVal containerID As String, ByVal workflowstepID As String) As String
    ''' <summary>
    ''' 更新总结转表检验信息（工步）
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <param name="workflowstepID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateContainerCurrentinfoCheckInfo2(ByVal containerID As String, ByVal workflowstepID As String) As String
    ''' <summary>
    ''' 更新总表的某些字段值
    ''' </summary>
    ''' <param name="updatePara"></param>
    ''' <param name="conditionPara"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateContainerCurrentInfoByField(ByVal updatePara As Dictionary(Of String, String), ByVal conditionPara As Dictionary(Of String, String)) As Boolean

    ''' <summary>
    ''' 校验结转总表某些字段是否更新
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function CheckContainerCurrentInfoFiled(ByVal containerID As String, ByVal filed As String, ByVal value As String) As Boolean

    ''' <summary>
    ''' 更新自动报工或外委数量
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <remarks></remarks>
    Sub UpdateAutoInfo(ByVal containerID As String, ByVal qty As Integer, ByVal changeQty As Integer, ByVal stepID As String)
    ''' <summary>
    ''' 循环更新班组派工信息
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <remarks></remarks>
    Sub UpdateTeamDispach(ByVal containerID As String, ByVal teamDispatchID As String)
    ''' <summary>
    ''' 更新工区协作数据
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <remarks></remarks>
    Sub UpdateWorkCenterDispach(ByVal containerID As String)
    ''' <summary>
    ''' 处理子卡异常导致的两种问题处理（暂定只处理热表）
    ''' </summary>
    ''' <param name="containerName">批次</param>
    ''' <returns></returns>
    ''' <remarks>1、热表子卡工步全部检验完成，但未入库且没有工序检验。2、热表子卡干完，但是主制工序未有自动报工数据</remarks>
    Function DealSubContainerError(ByVal containerName As String) As uMESProcessResult
End Interface
